import {
  BrowserRouter,
  Routes,
  Route
} from "react-router-dom";
import Game from "./Game";
import Home from "./Home";
import Admin from "./Admin";

const App = () => {
  return (
    <BrowserRouter basename={process.env.PUBLIC_URL}>
      <Routes>
        <Route path="/" element={<Home />} />
        <Route path="game" element={<Game />} />
        <Route path="admin" element={<Admin />} />
      </Routes>
    </BrowserRouter>
  );
}

export default App;
